package com.class5.springboot.entity;

import com.class5.springboot.frame.repo.entity.SuperEntity;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * tb_asset_change 固定资产变更记录表 
 **/
@SuppressWarnings("serial")
public class TbAssetChange extends SuperEntity implements Serializable {

    /**主键(id)*/
    private Long id;

    /**固定资产编号(asset_num)*/
    private String assetNum;

    /**所属门店ID(org_id)*/
    private Long orgId;

    /**创建时间(create_time)*/
    private Timestamp createTime;

    /**更新时间(modify_time)*/
    private Timestamp modifyTime;

    public TbAssetChange() {
    }

    public TbAssetChange(Long id, Timestamp createTime) {
        this.id = id;
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public TbAssetChange setId(Long id) {
        addOriginalData("id", this.id, id);
        this.id = id;
        return this;
    }

    public String getAssetNum() {
        return assetNum;
    }

    public TbAssetChange setAssetNum(String assetNum) {
        addOriginalData("asset_num", this.assetNum, assetNum);
        this.assetNum = assetNum;
        return this;
    }

    public Long getOrgId() {
        return orgId;
    }

    public TbAssetChange setOrgId(Long orgId) {
        addOriginalData("org_id", this.orgId, orgId);
        this.orgId = orgId;
        return this;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public TbAssetChange setCreateTime(Timestamp createTime) {
        addOriginalData("create_time", this.createTime, createTime);
        this.createTime = createTime;
        return this;
    }

    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public TbAssetChange setModifyTime(Timestamp modifyTime) {
        addOriginalData("modify_time", this.modifyTime, modifyTime);
        this.modifyTime = modifyTime;
        return this;
    }

    @Override()
    public String toString() {
        return this.getClass().getName() + ":{id:" + id + ",assetNum:" + assetNum + ",orgId:" + orgId + ",createTime:" + createTime + ",modifyTime:" + modifyTime + "}";
    }

    @Override()
    public boolean equals(Object arg0) {
        return ((TbAssetChange) arg0).getId().equals(id);
    }

    @Override()
    public int hashCode() {
        return id == null ? 0 : id.hashCode();
    }
}
